package com.ssyx.enums.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ssyx.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @program: ssyx-parent
 * @className: UserLoginLog
 * @description: UserLoginLog
 * @data: 2024/3/6 19:25
 * @author: ihu
 * @version: 1.0
 **/

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "UserLoginLog")
@TableName("user_login_log")
public class UserLoginLog extends BaseEntity {
	
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value = "用户id")
	@TableField("user_id")
	private Long userId;
	
	@ApiModelProperty(value = "登录ip")
	@TableField("ip")
	private String ip;
	
	@ApiModelProperty(value = "登录城市")
	@TableField("city")
	private String city;
	
	@ApiModelProperty(value = "登录类型【0-web，1-移动】")
	@TableField("type")
	private Boolean type;
	
}